package 腾讯云智笔试.A;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        int x=sc.nextInt();
        int y=sc.nextInt();
        int sum=0;
        for (int i = 0; i < n; i++) {
            int temp=sc.nextInt();
            if (temp>=x&&temp<=y&&temp%2==0){
                sum++;
            }
        }
        System.out.println(sum);
    }
}
